package com.qcby.demo.spi.starter.service.impl;

import com.qcby.demo.spi.starter.service.IHelloService;
import com.qcby.demo.spi.starter.service.properties.HelloMsgProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @className: HlleoImpl
 * @description:
 * @author: lxt
 * @create: 2021-05-20 21:34
 **/
@Slf4j
public class HelloServiceImpl implements IHelloService {

    @Autowired
    private HelloMsgProperties helloMsgProperties;

    @Override
    public void say(String name) {
      log.info("hello:{},{}!",helloMsgProperties.getMsgContent(),helloMsgProperties.getName());
    }
}
